@extends('layouts.back_stage')
@section('style')
    @parent
    <style>
        .express{
            width: 300px;
            margin-bottom: 30px;
        }
    </style>
@endsection
@section('content')
    <div class="container">
        <div class="pull-left" style="width: 100%;margin-bottom: 20px">
            <form action="/out-stage/freight" role="form" style="display: inline-block;margin-right: 10px">
                <label>用户姓名：</label>
                <input type="text" name="user_name">
                <label>选择月份：</label>
                <select name="year" id="year" style="width: 150px">
                    <option value="">请选择</option>
                    <option value="{{$year-1}}">{{$year-1}}</option>
                    <option value="{{$year}}">{{$year}}</option>
                    <option value="{{$year+1}}">{{$year+1}}</option>
                </select>
                <select name="month" id="month" style="width: 150px">
                    <option value="">请选择</option>
                    <option value="01">1月</option>
                    <option value="02">2月</option>
                    <option value="03">3月</option>
                    <option value="04">4月</option>
                    <option value="05">5月</option>
                    <option value="06">6月</option>
                    <option value="07">7月</option>
                    <option value="08">8月</option>
                    <option value="09">9月</option>
                    <option value="10">10月</option>
                    <option value="11">11月</option>
                    <option value="12">12月</option>
                </select>
                <button type="submit" class="btn btn-info" id="sort_btn">搜索</button>
            </form>
        </div>
        <h3>购买用户每月的运费总费用结算</h3>
        <br/>
        <table class="table table-hover" >
            <thead>
            <tr>
                <th >购买用户的ID</th>
                <th >购买用户的姓名</th>
                <th>运费结算所在月</th>
                <th>总费用</th>
            </tr>
            </thead>
            <tbody>
            @foreach($express as $value)
                <tr>
                    <td>{{$value[0]}}</td>
                    <td>{{$value[1]}}</td>
                    <td>{{$value[2]}}</td>
                    <td>{{$value[3]}}</td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endsection